package com.gaoyi.crm.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import com.gaoyi.crm.adapter.base.BaseWidgetAdapter;
import com.gaoyi.crm.databinding.PopupTvBinding;
import com.gaoyi.crm.db.dto.ShortDto;

import java.util.List;

public class PopupWindowAdapter extends BaseWidgetAdapter<PopupTvBinding, ShortDto> {
    public PopupWindowAdapter(Context context, List<ShortDto> list) {
        super(context, list);
    }

    @Override
    protected void initView(PopupTvBinding binding, ShortDto item) {
        binding.tvPopup.setText(item.getName());
    }

    @Override
    protected PopupTvBinding getViewBinding(LayoutInflater inflater, ViewGroup viewGroup) {
        return PopupTvBinding.inflate(inflater, viewGroup, false);
    }
}
